package com.github.ylt.protocol.event;

import com.github.ylt.protocol.http.HttpConnection;

public final class HttpEvent implements Event {

    private final HttpConnection connection;
    private final String name;
    private final EventType eventType;

    public HttpEvent(HttpConnection connection,String name, EventType eventType) {
        this.connection = connection;
        this.name = name;
        this.eventType = eventType;
    }
    @Override
    public String name() {
        return name;
    }

    @Override
    public HttpConnection connection() {
        return connection;
    }

    @Override
    public EventType eventType() {
        return eventType;
    }
}
